-- GENERATED SPELL FOR [Subjugator Shi'aziv] --


function spell0_19282(pUnit, Event) --@Mind Sear,n/a--
pUnit:FullCastSpellOnTarget(32000,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19282', 3000, 1)
end

function spell1_19282(pUnit, Event) --@Pain Spike,n/a--
pUnit:FullCastSpellOnTarget(32026,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19282', 0, 1)
end

function Sorts_19282(pUnit, Event)
local choix_sorts_19282 = math.random(0, 1)
if choix_sorts_19282 == 0 then
pUnit:RegisterEvent('spell0_19282', 1, 1)
end
if choix_sorts_19282 == 1 then
pUnit:RegisterEvent('spell1_19282', 1, 1)
end
end

function mob19282_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19282', math.random(1500, 3000), 1)
end

function mob19282_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19282_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19282_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19282, 1, 'mob19282_Action')
RegisterUnitEvent(19282, 2, 'mob19282_Leave')
RegisterUnitEvent(19282, 3, 'mob19282_Kill')
RegisterUnitEvent(19282, 4, 'mob19282_Die')
